import { Get, Post } from '@/utils/axios/request'

const prefix = '/v1/user'
// 登录
export const _login = (params: any) => {
	return Post(prefix + '/login', params)
}

// 注册
export const _register = (params: any) => {
	return Post(prefix + '/register', params)
}

// 函数实现
export function _getUserInfo(params: any, uuid?: string): any {
	if (uuid) {
		return Get(prefix + `/${uuid}`, params)
	} else {
		return Get(prefix + `/`, params)
	}
}
